<head>
  <style>
      table, th, td {
          border: 1px solid black;
          border-collapse: collapse;
      }
      th,td {
          padding: 15px;
          text-align: center;
      }
  </style>
</head>
<h1 align="center">Open Positions</h1>
<table style="width:100%"; bgcolor="#F6F6FF">
  <tr>
    <th> Title </th>
    <th> Start Date</th>
    <th> End Date </th>
    <th> Wage ($/hr) </th>
    <th> Store Location </th>
    <th> Store ID </th>
    <th> Apply </th>
  </tr>

  <% @full.each do |open_positions| %>
      <tr>
        <td><%= open_positions['title'] %></td>
        <td><%= Date.strptime(open_positions['start_date']).strftime('%B %d, %Y') %></td>
        <td><%= Date.strptime(open_positions['end_date']).strftime('%B %d, %Y') %></td>
        <td><%= open_positions['wage'] %></td>
        <td><%= open_positions['city'] %>, <%= open_positions['state'] %></td>
        <td><%= open_positions['store_id'] %></td>
        <td><%= link_to '<button>Apply Now!</button>'.html_safe, applicant_apply_path(:post_id => open_positions['posting_id'], :position_id => open_positions['position_type_id']), method: :get %></td>
      </tr>
  <% end %>
</table>
<br> </br>